home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19981211-19990422
/
000144_news@watsun.cc.columbia.edu _Fri Jan 22 14:46:43 1999.msg
< prev
next >
Wrap
Internet Message Format
|
1999-04-21
|
2KB
Return-Path: <news@watsun.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id OAA06931
for <kermit.misc@watsun.cc.columbia.edu>; Fri, 22 Jan 1999 14:46:43 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id OAA25249
for kermit.misc@watsun.cc.columbia.edu; Fri, 22 Jan 1999 14:19:41 -0500 (EST)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Subject: Re: sleeping for random amounts of time
Date: 22 Jan 1999 19:19:40 GMT
Organization: Columbia University
Message-ID: <78aj0c$oku$1@newsmaster.cc.columbia.edu>
To: kermit.misc@mailrelay2.cc.columbia.edu
In article <gerlachF5z4BA.Hwu@netcom.com>,
Matthew H. Gerlach <gerlach@netcom.com> wrote:
: I want to write a kermit script to thrash a device I'm working on.
: In doing so, I want the script to be able to insert random pauses
: in the data stream.
:
: I figured the msleep command would provide the pauses, but I see no
: builting random() function call or anything like that. I didn't see
: a relevent posting in a DejaNews search; so I was wondering if anyone
: had a good idea for generating a random number in a kermit script?
:
It depends on the Kermit program and version. Kermit 95 1.1.17 (the
current version) has a function that returns a random integer within
the given range.
C-Kermit 7.0, to be announced for testing soon, has this too.
Otherwise you can use something like \fright(\v(ntime),2) (the rightmost
2 digits of the number of seconds since midnight).
- Frank